import request from '@/utils/request'

// 获取首页右侧园区评分排行
export const getScreenParkRank = (params) => {
  return request({
    method: 'get',
    url: '/system/screen/query/home/park',
    params: params,
  })
}

// 获取首页右侧隐患排行
export const getScreenDangerRank = (params) => {
  return request({
    method: 'get',
    url: '/system/screen/query/home/danger',
    params: params,
  })
}

// 获取园区详情右侧数据
export const getParkTotalById = (params) => {
  return request({
    method: 'get',
    url: '/system/screen/query/park/total',
    params,
  })
}

// 获取重点部位详情
export const getImportantTotal = (params) => {
  return request({
    method: 'get',
    url: '/system/screen/query/important/total',
    params,
  })
}

// 获取具体园区的危房信息
export const getDangerTotal = (params) => {
  return request({
    method: 'get',
    url: '/system/screen/query/danger/total',
    params,
  })
}

// 获取园区告警总数
export const getScreenAlterTotal = (params) => {
  return request({
    method: 'get',
    url: '/device/screen/query/alter/total',
    params,
  })
}

// 获取园区告警详情
export const getScreenAlterDetail = (params) => {
  return request({
    method: 'get',
    url: '/device/screen/query/alter/detail',
    params,
  })
}

// 获取具体园区的设备统计
export const getEquipmentTotal = (params) => {
  return request({
    method: 'get',
    url: '/device/screen/query/device/total',
    params,
  })
}

// 获取具体园区的报警事件
export const getWarnIncident = (params) => {
  return request({
    method: 'get',
    url: '/device/screen/query/event/content',
    params,
  })
}

// 获取报警趋势分析
export const getWarnTendency = (params) => {
  return request({
    method: 'get',
    url: '/device/screen/query/alter/device/day',
    params,
  })
}

// 获取设备分类统计
export const getDeviceTypeStatistic = (params) => {
  return request({
    method: 'get',
    url: '/device/screen/query/alter/device',
    params,
  })
}

// 获取隐患处理进度
export const getDangerTotalData = (params) => {
  return request({
    method: 'get',
    url: '/inspection/screen/query/danger/total',
    params,
  })
}
